/**
 * 实验设计相关请求
 */
import { GET, POST } from "./xhr";

// 新增实验设计
export const fetchAddDesigner = async (data: any) =>
  await POST("/api/designer/add", data);

// 请求所有实验设计
export const fetchAllDesigner = async () => await GET("/api/designer/all");

// 删除实验设计
export const fetchDelDesigner = async (data: any) =>
  await POST("/api/designer/del", data);

// 实验设计详情
export const fetchDesignerInfo = async (data: any) =>
  await POST("/api/designer/detail", data);

// 更新实验设计
export const fetchUpdateDesigner = async (data: any) =>
  await POST("/api/designer/update", data);

// 新增实验设计试剂
export const fetchAddDesignerReagent = async (data: any) =>
  await POST("/api/designer/addreagent", data);

// 修改实验设计试剂
export const fetchUpdateDesignerReagent = async (data: any) =>
  await POST("/api/designer/updatereagent", data);

// 删除实验设计试剂
export const fetchDelDesignerReagent = async (data: any) =>
  await POST("/api/designer/deletereagent", data);

// 删除实验设计反应试剂
export const fetchDeleteDesignerReactorReagent = async (data: any) =>
  await POST("/api/designer/deletereactorreagent", data);

// 新增实验设计反应试剂
// export const fetchAddReactorReagent = async (data: any) =>
//   await POST("/api/designer/addreactorreagent", data);

// 编辑实验设计反应试剂
export const fetchUpdateReactorReagent = async (data: any) =>
  await POST("/api/designer/updatereactorreagent", data);

// 清除实验反应试剂
export const fetchClearDesignerReactorReagent = async (data: any) =>
  await POST("/api/designer/clearreactorreagent", data);

// 复制实验反应试剂
export const fetchCopyReactorReagent = async (data: any) =>
  await POST("/api/designer/copyreactorreagent", data);

// 导出实验数据
export const fetchExportDesigner = async (data: any) =>
  await POST("/api/designer/exportdesigner", data);

// 复制实验设计
export const fetchCopyDesigner = async (data: any) =>
  await POST("/api/designer/copydesigner", data);

// 修改实验步骤
export const fetchReactorStep = async (data: any) =>
  await POST("/api/designer/changestep", data);

export const fetchCreateReactExcel = async (data: any) => await POST("/api/designer/createreactexcel", data);

// 新增反应设计
export const fetchCreateReactDesigner = async (data: any) => await POST("/api/designer/createreactdesigner", data);

export const fetchReactDesignerList = async (data: any) => await POST("/api/designer/reactdesignerlist", data);

export const fetchUpdateReactDesigner = async (data: any) => await POST("/api/designer/updatereactdesigner", data);
export const fetchDelReactDesigner = async (data: any) => await POST("/api/designer/removereactdesigner", data);

export const fetchGetReactDesignerById = async (data: any) => await POST("/api/designer/getreactdesigner", data);